Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ESM exports in package.json. Update microbundle. #122

Closed
wants to merge 1 commit into from

Conversation

fedemp
Copy link

@fedemp fedemp commented Oct 11, 2023

Since this package is published as commonjs, es6 files are now published using the mjs extension.

Added more explicit file paths in the exports field, pointing to a unique declaration file for each bundle.

Declaration file is copied using the mts extension so it's explicitly marked as es6.

The package now passes the publint and Are the types wrong? tests.

Since this package is published as commonjs, es6 files are now published
using the mjs extension.

Added more explicit file paths in the `exports` field, pointing to a
unique declaration file for each bundle.

Declaration file is copied using the mts extension so it's explicitly
marked as es6.

The package now passes the [publint](https://publint.dev/) and [Are the
types wrong?](https://arethetypeswrong.github.io/) tests.
package.json Show resolved Hide resolved
@mweststrate
Copy link
Collaborator

Sorry, missed the PR earlier! Just released it as 0.10.0. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants